// License: http://www.codeplex.com/entlibcontrib/Project/License.aspx
// Author: Randy

using System;
using System.Runtime.Serialization;

namespace EntLibContrib.Logging.Parser
{
	/// <summary>
	/// Exceptions are made serialisable, so they can cross remoting and application domain boundaries.
	/// </summary>
	[Serializable]
	public class LoggingCategoryNotDefinedException : Exception, ISerializable
	{
        /// <summary>
        /// Contructor to initialize a new instance.
        /// </summary>
		public LoggingCategoryNotDefinedException() { }
        /// <summary>
        /// Contructor to initialize a new instance with a specific error message.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
		public LoggingCategoryNotDefinedException(string message) : base(message) { }
        /// <summary>
        /// Contructor to initialize a new instance with a specific error message and a reference to the inner exception that is the cause of this exception.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="inner"></param>
		public LoggingCategoryNotDefinedException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        /// Contructor to initialize a new instance for serialization.
        /// </summary>
        /// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
        /// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
		protected LoggingCategoryNotDefinedException(SerializationInfo info, StreamingContext context) : base(info, context) { }
	}
}
